import request from '@/utils/request'

const prefix = '/aebasic'

export function getIndicators() {
  return request({
    url: `${prefix}/myworkspace/searchIndicators`,
    method: 'post',
    data: {}
  })
}

export function getTodo(page, size) {
  return request({
    url: `${prefix}/myworkspace/searchRemind/${page}/${size}`,
    method: 'post',
    data: {}
  })
}

export function getInventory(page, size) {
  return request({
    url: `${prefix}/myworkspace/searchStock/${page}/${size}`,
    method: 'post',
    data: {}
  })
}

export function getChartsData(data) {
  return request({
    url: `${prefix}/myworkspace/searchData`,
    method: 'post',
    data
  })
}
